package team.freeroom.hotelmanage.repository.entity;

import javax.validation.constraints.NotEmpty;

/**
 * 角色实体类
 *
 * @author aBadString
 */
public class Role {
    /**
     * 角色 ID
     */
    private Long id;
    /**
     * 角色名称
     */
    @NotEmpty(message = "请填写角色名称！")
    private String name;
    /**
     * 备注
     */
    private String remark;

    public Role() {
    }

    public Role(String name, String remark) {
        this.name = name;
        this.remark = remark;
    }

    public Role(Long id, String name, String remark) {
        this.id = id;
        this.name = name;
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
